package src;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class Writer {
    public static Writer instance = new Writer();
    public void write(String srcFile, String s){
        File file = new File(srcFile);
        try {
            if(!file.exists()){
                file.createNewFile();
            }
            BufferedWriter bw = new BufferedWriter(new FileWriter(srcFile, true));
            bw.write(s );
            bw.close();
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
